//
//  NavigateButtons.swift
//  MyCloset
//
//  Created by 牟好好 on 2024/11/27.
//

import SwiftUI

struct NavigateButtons: View {
    @Binding var isScrollTop: Bool
    @Binding var isScrollBottom: Bool
    
    var body: some View {
        VStack(spacing: 5) {
            Button(action: {
                isScrollTop.toggle()
            }, label: {
                Image(systemName: "arrowtriangle.up.circle")
            })
            
            Button(action: {
                isScrollBottom.toggle()
            }, label: {
                Image(systemName: "arrowtriangle.down.circle")
            })
        }
        .font(.system(size: boundsWidth * 0.1))
        .offset(x: boundsWidth * 0.12, y: -safeAreaBottom - boundsHeight * 0.05)
    }
}

#Preview {
    NavigateButtons(isScrollTop: .constant(false), isScrollBottom: .constant(false))
}
